<template>
  <div class="inp-search">
    <div class="search">
      <div class="search-icon">
        <i class="bi bi-search"></i>
      </div>
      <div class="inp" @click="jumpTo">
        <input type="text" placeholder="请输入搜索关键字" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    jumpTo(){
      this.$router.push({path:"/search"});
    }
  }
}
</script>

<style lang="less">

.search {
  width: 100%;
  height: 60px;
  position: fixed;
  background: #fff;
  .search-icon {
    position: absolute;
    color: #5d5d5a;
    margin-left: 22px;
    margin-top: 18px;
    font-size: 20px;
    z-index: 1001;
  }
  .inp {
    width: 100%;
    position: absolute;
    input {
      width: 80%;
      height: 38px;
      border: none;
      outline: none;
      background: #f5f5f5;
      border-radius: 20px;
      margin-left: 10px;
      margin-top: 10px;
      font-size: 16px;
      padding-left: 50px;
    }
  }
}
</style>